Fixed a couple issues with xstrtod()