Fix compilation error in GlobalThresholder