mingw build fix no. 3.1