An interesting thing that came up is that MSVC uses 32-bit longs instead of 64, so a pure gcc/winelib build is another level of 64-bit porting.
Claude then suggested using mingw instead, which makes sense...