FreeBSD 10 fixup

* fixed some compiler errors
* fixed some compiler warnings

It seems that PAM_AUTHTOK_RECOVER_ERR has been renamed into PAM_AUTHTOK_RECOVERY_ERR. Also, pam functions are defined in security/pam_appl.h.