Rory McIlroy claimed a one-shot lead at the halfway stage of the Deutsche Bank Championship after a 65.