Corrected OpenGL extension detection

- corrected multitexture and VBO detection
- GLEW is now a required library
- minor CMakeLists refactoring