Adapt build system to also support Qt6
This also includes some of the necessary code changes, but especially the port to KWaylandServer is still missing.
This also includes some of the necessary code changes, but especially the port to KWaylandServer is still missing.