Add -g support to goc.py