pthread_timedjoin_np fix on Mac OS X