Copied X11 error handler code from SDL_x11opengl.c Avoids needing to malloc to hold the error string.