Fix MSVC9, maybe mingw