Moved type of pid_t to int to be consistent with pthread on win32