Some say why the Taliban talked in a positive manner regarding Qatari government. What do you expect them to do? To make takfir upon them openly and say we reject you and hate you and show animosity towards you, you are taghut and our enemy and this or that? While they have allowed them to open a political and diplomatical office there and conduct works of the Islamic Emirate from there. Jihad is not only military warfare, also diplomacy and politics can be part of it, one utilises all the legitimate means to achieve an islamic end goal. Look at the treaty of Hudaybia that the prophet (pbuh) signed with the mushrikeen of Quraish, even though they had been fighting each other for more than a decade. But sometimes small compromises can be made, as long as it is not in fundamentals of the religion.
The prophet (pbuh) said: 'Those who are not thankful of the people will not be thankful of Allah'.
The prophet (pbuh) and the sahaha were thankful of the Christian Najashi king of Ethiopia even before he became a muslim, because he allowed the first muslim muhajireen (emigrants) to settle in his land, because they were fleeing persecution of Quraish in Mecca. Read the speech that Ja'far (radiallahu anhu) gave before his court, when Abu Sufiyan wanted them to be extradited. That was true hikmah (wisdom). But if these IS people would be present then, they would say Najashi is a taghut, we do kufr bi taghut on him, he is this and that and all of those poor muslims would be sent back to Mecca were they would have been tortured and Abu Sufyan (the then leader of the mushrikeen and kufaar) who were fighting islam and muslims would be happy and say mission accomplished.