Accept whole range of supported pids
The pam_wrapper assumes that the PID is smaller than 0xFFFF, which is no longer the case (at least for several years in Linux).
This is very similar construct that used to be in libssh too [1] and caused pain there so I would suggest to fix it in very same manner (see attached patch).