Numerous minor build system improvements:

 * Convert pam_chos to autotools
 * Implement 'make dist' for kernel