Afghan rivals say they're close to ending leadership feud