Fixed regression with OSX 10.8 update due to incorrect use of dispatch_semaphore_wait return value.