ThresholdOverlay: hopefully fix compile errors