May be put all of this WinRT-related code under

```
if (ENABLE_WINRT_MODE OR ENABLE_WINRT_MODE_NATIVE)
```
?