Adding .travis.yml and fixing cmake build.