ipv6: fix detection under mingw