Fix issue compiling in mingw32