Switch back to qt4
Fix qt4 build (and keep the code for qt5 just in case)