Rory McIlroy overcame the shock of breaking a club midshot to card an opening 67 in the BMW PGA Championship.