glad: updated example, fixed C generator