Check for -lnsl, -lsocket, etc, *before* looking for getaddrinfo,