move many enumerations into include/gl/program.h where they belong