WinRT core compatibility fixes

Update system.cpp

Update system.cpp

Update ocl.cpp

Update matching.cpp

Update ocl.cpp

Update matching.cpp
Merge pull request #2698 from GregoryMorse:patch-2