cmake: fix the build Windows (at least mingw)