cgol actually working now, just 3 compile warnings left
cgol: fixed return type of cgol_gen_start