Fix around pid_t for mingw, thanks to Jay