[PD] pthread_setschedparam problem on OSX + fix