Extend the change from !4625 (merged) to apply to the MSYS/MinGW Makefiles generators too. Drop the implied
g++ default compilers. This allows MinGW/Clang environments to work out of the box.
Also simplify selection of
windres as the resource compiler.
Since commit 957c2aac,
selected automatically when using compilers that target the GNU ABI.
Drop the generator-specific preference to make behavior more consistent
with the Ninja generator.
Fixes: #23542 (closed)