getaddrinfo support on windows

Hi, this adds support for named hosts on windows. Would be nice if this was merged into the main repository.