OpenGL code on Mac (OSX) using GLUT and glew