pam: fix cross-compilation

TODO: Ask @viric whether it works for him. He added these lines in the
first place, but now (years later) they seem to break.