Makefile: allow configuration of CMake flags

Although CMAKE_FLAGS was already a Makefile variable, it didn't have an
empty default value meaning that extending the flags to CMake in a clean
way was difficult. Add a CMAKE_EXTRA_FLAGS variable which is appended to
the default flags.
add installation as a travis test

Not only should we pass the test suite but we should also install
successfully.