Fix IPv6 on non-Linux platforms