(socket_connection): Use getaddrinfo if available.