Fix compilation error in non-editor build