Changed DirectX11 COM objects to use smart pointers.