fix latest HAS_NAMESER code on cygwin, mac and openbsd

A better patch that just addresses issue #33