fix wrong OpenGL extension types/exit on fatal error