fixed FreeBSD 10 pam issues along with some compiler errors