Fixes for broken krb5 systems, like cygwin. Removed the  not HEIMDAL defines.  Changed ifdefs to #ifs for some HAVE_XYZ defines.  WE should do that across the board