Initial Qt5 support.
* Simplify qt5 support.
* Use cmake 2.8.9 for qt4 and 2.8.11 for qt5.
Fix broken build with Qt4.