Rory McIlroy trails by three shots at the Deutsche Bank Championship after Louis Oosthuizen broke the course record on the front nine.