Fix compilation on windows for ipv6 code