Adds supporting for WinRT. Fixes WindowsPhone sln.

NETFX_CORE stands for the #define flag for WinRT.