[CMake] Improve deployment on Windows platforms