Fixing fromString<double>() on iOS

boost::lexical_cast crashes when trying to convert a string to a double on iOS.

Instead of patching the code responsible for JSON and XML parsing, I guess it's better to address the problem at the source...