I think the world has to resign itself to the fact that 'we' have to stay in Afghanistan for the foreseeable future. There is no cure all, magic bullet or snake oil that is going to solve the multitude of problems. But - being seen to being fully committed to never ever leaving and to gradually bringing improvements to the parts of the country that can be safe areas will over time wear out the opposition.
I don't like it, it contradicts a lot of my liberal beliefs but I see no other way. Because we are not dealing apples with apples, it is 21st century ethics versus medieval intolerance.