Rewrite CMakeList for the compilation on Windows