Fixed compilation on OpenBSD.

OpenBSD has slightly different resolv.h (ipv6 data in separate var)