only call GLEW_... if we have a valid context
defer download to after context creation
use CPPEXTERN_MSG rather than explicit static callbacks
remove compile errors
cleanups