fix latest HAS_NAMESER code on cygwin, mac and openbsd