Untz work for CMake and mingw64 compile