Fix WinRT build errors