Factored out paltofrm specific code for conbverting system units to dip and fixed SpeedbugView to use it