WIP for Windows MINGW builds.