Add in missing CGL stuff and fix mutability of externs.
Merge pull request #60 from metajack/missing-cgl

Add in missing CGL stuff and fix mutability of externs.