gghc has a cntx to avoid global vars.
main() from gghc.c
Moved most of main() to process.c.
Count errors, fix error_code.