resolve cmake path problems for full mingw32 compile