Fix compilation error in benchmark.