Rory McIlroy got back to level-par with a birdie at the par-5 second hole at Royal Portrush during the first round of the Open Championship.