Fixes for the PID on POSIX