Iraq, Turkey agree to cooperate on counterterrorism, trade