Realizing its past mistakes, Turkey could become an easier foreign policy partner.