winrt: workaround for pre-UWP builds. There's probably a better way to do this for legacy platforms, though.