cmake: Fix CMAKE_HOST_SYSTEM_VERSION when built for MinGW
Due to #23244 our application manifest is not automatically embedded
when built with MinGW tools. Embed it via an explicit resource file.
Also add `<trustInfo>` to the manifest because MinGW tooling does not
add it automatically as MSVC tooling does.
Fixes: #27152
Issue: #23244