fix getaddrinfo to accept port 0 (zero)