Add std::to_string to standard library include
Improve safety of GetOpenGLError function