DNS resolver init changes for NetBSD compatibility.