Add: support for freeglut;
Add: minor changes to reduce warnings.