[SharpDX] Fix issues with recent changes in ComObject management
[SharpDX] Fix build error with latest changes in ComObject