Compromise behind Fatah-Hamas deal