C# Core 3.5: Copied SL and WP8 specific changes to core