Support building against Qt5.
cmake: Autodetect Qt-version. Prefer Qt5, then require Qt4.