resolved to_string() unavailability in GCC compiler by writing a std::string to_string(T& t) function;