fixing minor issue with old versions of opengl