Oil prices firm as Iraq tensions escalate, shares extend rally