Fix some build warnings, add TravisCI config