Grr. Forgot to enable the "freeglut" C programming mode in EMACS, and