Fixed compile errors
Merge pull request #323 from uhaciogullari/winrt-fix

WinRT build fix