ENH: Push DoubleToString class to BRAINSCommonLib

COMP: Fix some compile problems.