Clean getaddrinfo() code in src/http_socket.c incorporating suggestions from Gé Weijers
Add getaddrinfo() code to src/cgi.c