Thanks! Note that I don’t have much experience writing Win32 apps so the code might not be top quality.
The universal lib is interesting for future work (the compiler inlined the few things I needed). For Win32s support generating a position-independent executable was the only problematic bit, but that's not an issue for libraries.