Fixed compile error with getaddrinfo with MinGW