Removed glutLeaveMainLoop because it's not part of standard GLUT