Fix compilation with the max_level_trace feature