fix separate tests

ThingTest and UserTest now need a QApplication to run
fix CMake building of shared/static library
update travis' config