glretrace,eglretrace: Factor out duplicate Xlib code into common module.
wgltrace: Update enums.
khronos: Refresh headers.