Add COM smart pointer support.