use strtod if strtold is not available