Fix ipv6 nscount for non-glib system