FreeGLUT implementation; few small fixes.