compile with pam support

Closes #350.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>