Minor changes to be compiled with gcc 4.6 (Travis CI).
Created Travis CI YAML file.