[cmake] Fix the web replay build