Resolve compiler warnings - deprecation et al
While churning through an earlier MR, the compiler seemed unhappy so here are some fixes to appease it.
Note: Flatpak: correctly check for the appstream-qt version
is identical to !487 (merged) and as such should probably be picked for the stable branches - 5.27 et al.