Fix build on windows

Problem was introduces by a non pull request push for ipv6 support
Merge pull request #2161 from bmiklautz/fix/windows_build

Fix build on windows