Some PAM fixes for AIX and HP-UX