fix glGetString and eglQueryString, and optimize emulated glGetString