Fix broken qt4 build and make lib and include paths of qt4 and qt5 versions different.