adjustments to build on windows with mingw
4 files changed