configure: check for qmake-qt5
Fix the installation location of .prf files
Merge branch '3.0' into 3.1
Merge branch '3.1'