WinRT core compatibility fixes

Update system.cpp

Update system.cpp

Update system.cpp

Update matching.cpp

Update matching.cpp
Merge pull request #2699 from GregoryMorse:patch-1