Fixes for new SharpDX version