Us ctx.env in check_extlib and not a copy