Merged GLX error code into library struct.
TLS key cleanup.