Fixes for Windows 10 and Windows 11
Summary
The Windows10 and Windows11 builds with MSYS2 encounter a few problems. This should fix most of those problems.
It doesn't deal with #25 (closed) #36 (closed)
Fixes #27 (closed) Fixes rtems/rtos/rtems#4191 (closed)