Adds support for WinRT. Fixes WindowsPhone sln.

NETFX_CORE stands for the #define flag for WinRT.
Merge pull request #497 from abattery/master

Adds supporting for WinRT. Fixes WindowsPhone Build.