qt: apply lots of patches to fix 10.9 HEAD build.

Closes #23793.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>