For whatever reason compiling Windows native binaries on Ubuntu 22.04 produces a 32-bit binary that doesn't work (the 64-bit one does work). Compiling them on Ubuntu 20.04 produces working binaries, which are also both much smaller than the ones from Ubuntu 22.04.