Add support for C style export

Sorry this has taken so long. Just sat down for a few hours to get this done.

So, does this pass muster? I've tried to keep impact low and only re-factor what I needed. In full disclosure I do not have a GB project to test this with yet.