pid_t working both windows and linux