A toolbox for qT and 0-jettiness subtractions at N3LO