Pakistan allows Gen. Sharif to head 39-nation force