Add generic error support for QGL_Init