Merge pull request #5526 from ligfx/fixqtc++17 CMake: make Qt work when using a manual "-std=c++##" flag