MinGW: Use pid_t more consequently, introduce uid_t for greater compatibility