Wrap some strtod() into setlocale to avoid locale problems