To beat ISIS, the U.S. and its allies must work with the groups the terrorists most fear.