Turkish leader Recep Tayyip Erdogan told reporters that he had agreed with his Iraqi counterpart to continue "our struggle against our common enemies"