changed use of std::to_string to boost::lexical_cast<string>