Use pid_t more consistently. Should shut up a warning from GCC 4.6, and may