The problem's a bit hairier than that: the tools are command-line only and OSD=winui tries to compile then as GUI apps (on windows GUI apps have a different entry point and some other different semantics. other OSes don't do that).