Move -DNOGDI to main project file.

This is not related to the cross build but a workaround when including
windows.h that also defines Polygon. So it's now enabled for all Windows
builds including MSYS2.
Updates to build on MSYS2.