[PD-dev] pthread_setschedparam problem on OSX + fix