fixing Mac->Linux bug on numeric_limits