Fix build issues

This fixes build issues on Windows 8.1 regarding DirectX header conflictions.

You will need to change MSVC project settings to include Windows SDK headers before DirectX headers.