WinRT core compatibility fixes

Update system.cpp

Update system.cpp

Update system.cpp

Update matching.cpp

Update matching.cpp