Rory McIlroy birdied the par-five fifth hole at Shinnecock Hills to kickstart his second round and close the gap to leader Wyndham Clark.