Properly handle systems without IPv6 support.