Fix compile without IPv6