[Toolkit] Fixed compilation error

Fix for compilation introduced in https://github.com/sharpdx/SharpDX/commit/331544574b17c9d0ba3190cd14f5ba4fae7a230a. Not sure if it is fixed correctly, however.