Remove ATL dependency from MSMF capture code.

Use _com_ptr_t instead of CComPtr to avoid ATL dependency.
This is a port of #3281 already applied to 2.4 branch.