also support systems without bet_get_enum()
only log protocol name if it is present
small portability fix in test_pamcmds.sh
guess the value for --with-pam-seclib-dir if it is not specified
fix a few compiler warnings