Added windows mingw compile fix