Add a routine to check and assert on any glErrors.
Used this to find an error where
(GL20/glGetShaderi new-pgm-id GL20/GL_LINK_STATUS)
should have been
(GL20/glGetProgrami new-pgm-id GL20/GL_LINK_STATUS).
So, I think this should solve issue #22