perf: Fix compilation

(Backported patch from upstream)