Fix missing includes


These popped up on a developer build of the newest dev branch.
I don't know whether there's been header refactoring churn
or whether the devs and CI use pch, but I certainly couldn't
build without these fixes, on Linux with GCC 11.

Pick-to: 6.3 6.2
Change-Id: Ic3529a33f4bc5c339b22c523d0be811ffb977c06
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
commit67599b96a54a6a9419d3fed7a9a51e1de44b35c9
parentc08b0234f0e7df0e28de969dcd1c4494fe2de3b8
authorVille Voutilainen <ville.voutilainen@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeTue, 17 May 2022 16:10:08 +0000