Major includes cleanup, temp. reintegrate GLEW

In a last ditch effort to get GLEW working, I've split the code into two
paths, one for GLEW and one for Qt-native functions.   I manually
resolve the functions for GLEW which Qt undefines so that it can work
alongside QGL* and QOpenGL* functions.