Fix build with mingw and GCC 4.6