mingw printf fixes