Use pam_authenticate_with_login_password from mod_authnz_pam.
Declare all functions static for proper isolation.
If pam_authenticate_with_login_password is not available, skip calling it.