Call writeHeaders instead of writing OpenGL headers directly