Fix for WIN32 and possibly other platforms which don't define in_port_t.