pthread: Use Mach semaphores instead of POSIX semaphores on Mac OS X