Musharraf foes strike a deal in Pakistan