Updated to work with freeglut 2.4.0