Fix lookup of service when getaddrinfo is unavailable.