fix getaddrinfo crash on OS X

Hello again :)