Build using the right os and display on Windows
The ifdef only worked when cross-building, or when building with msvc, it seems.
BUG:368565