PAM module: fix static build issue