Fix compilation with profiler.