Turkey 'will keep talking' to Baghdad, Kurdish region