replaced c-style casts with c++ style for gui/glut library