Fix CommondDx

The new SharpDx has api changes that needed fixing in the CommonDx