Fix compile for some versions of mingw