Prepare CMakeLists to switch between Qt4 and Qt5
Add back Qt4 support