Add Ime::ComPtr and Ime::ComQIPtr smart pointers for COM objects.