Start to working on PAM support
Fix compilier warnings on typedef-redefinition
Make PAM work
Add PAM config file