Fix generation of version.h
Make calls to glGetError() optional at compile