Fixed compiling with mingw-w64 on linux