Fixed Mingw compilation