Rory McIlroy says a bit of "good work" with his team helped him rediscover his form and take a clubhouse lead in the first round of the BMW Championship.