Pakistan is a lot more in bed with the taliban/al-Qaeda.
Turkey's border is much more solid, and I wouldn't exactly call them friendly with ISIS. They may fool around a bit when it suits them, but ISIS would eventually target them for the caliphate.
Its the middle east. No one likes anyone. Turkey hates the Kurds because they tend to rebel and try to start their own country. Which goes back to British map drawing.