Add travis build, correct flags to work with declared gcc version.