Fix compilation with g++, add .travis.yml