Add .travis.yml file

Also fix build on ubuntu.
Add initial unit test project