Fix compilation on GCC

getaddrinfo is not part of c99