Move HSNet import to top of file; it was below '#if defined(IPV6_SOCKET_SUPPORT)' which requires it.