fixed compilation issues for mingw64 g++ 4.7