Revert "(GLX) Remove a global and a reinvented typedef."

This reverts commit cb1b7695cbd106bbb969117e72b4ccd430e3e668.