Adapt the build system be compatible with qt5 and qt6
This adapts the build system to be compatible with both Qt6 and Qt5 and makes koglobal build and link. I intend to merge this to master on Friday afternoon. I've checked the Qt5 build on Windows and Linux, and there were no problems.
A number of optional deps don't work yet, like poppler or python.
Edited by Halla Rempt