Update CMakeLists to avoid problem in installing static library in windows