Implemented own extension detection to work around GLEW bugs