fixed for mingw build on F18