[linux-pam] Fix check for libtirpc and enhance check for libnsl to include new libnsl.