PID fix for OS X