Merge pull request #56 from jelmer/kcm-fix-sigterm

Fix handling of SIGINT/SIGTERM in kcm.
Add travis config.
Run make before make check, in case libraries are not all built yet.