WinRT core compatibility fixes