add changing of pc labels
fix accidental (ugly) use after free, add ptr for globals
seems setupglobal must always be called if 'local labels' are used, so better call it