Add configure checks for PAM and NCurses.
Ensure that installed loginx is owned by root.