Enclosing X11 error handler in an unnamed namespace.