fixed compile-time warning for getpid()