added apt repo for qt5 to travis config

Travis failed to build before because it couldnt find the
qt5 package
added Qt compile flags to fix errors
cleanup CMake file