sgs2c: finished most compatibility work