fix UnitConverter compilation issues