rm a decent amount of dead code, restore GL_KHR_debug, using qt's class

bonus might be that there's less staticness all around..not a fan that
it isn't actually removable at debug time..sure, i can #ifdef ndebug
in the message slot, but the compiler would have no idea to turn that
into nothing. but, that's overoptimization at this point.