Iraq and Turkey agree to fight "common enemies" together