Configure fixes

Fixes for a few major issues with the configure script:

# `--disable-` options weren't respected correctly (instead, they enabled the feature),
# replaced `--enable-nopam` with `--disable-pam` that is easier to comprehend,
# added missing `PKG_PROG_PKG_CONFIG` call needed before `$PKG_CONFIG` is used directly.