TSAGE: R2R - Add missing shouldquit in loop, fix build