When building targeting XP, you should use the /mingw32-xp/buildxp.sh wrapper

Also be sure to install the following packages into your modern /mingw32:
- mingw-w64-i686-cmake mingw-w64-i686-meson mingw-w64-i686-ninja