mingw: fix compilation error