Removed references to std::to_string since some MinGW versions don't support it