Add LINK_PAM option to force linking pam
Improve detection on FindLibs