NASM animation on OS X with GLUT and OpenGL