Fix res_ninit on NetBSD