MinGW: Restore using windres when toolchain-prefixed name is not available
Since !7301 (merged) the MinGW Makefiles
and MSYS Makefiles
generators no longer specify the plain
windres
name for the MinGW resource compiler. Instead, the name is
specified in our MinGW platform information module. After the change in
!4520 (merged), when cross-compiling,
we only specify the toolchain-prefixed name of the tool, which may not
be available in all environments.
If the toolchain-prefixed name is not available, fall back to the plain
windres
name. We already use this approach for other binutils.
Fixes: #23841 (closed)
Backport: release