Candidates make subtle jabs on foreign policy