Renamed GLXxx caps to GLX_xx. Fixed other bugs from recent commits that broke compilation.