Adapt build system for building against qt6

2 jobs for master in 41 seconds (queued for 2 seconds)