Add travis build configuration

This requires a custom install of g++-4.8, but it works.