Fixes for NOIPV6

Fixes to compile without IPv6 support