build with mingw on Windows and Linux