fix warnings when loading OpenGL versions > 1.0; make sure imread is imported so that glimread works for versions > 1.0