import changes from ip1981

https://github.com/ip1981/libpam-sqlite