Make benchmarks.C working with ROOT 6