Changes from ASP.NET vNext

These are the generally-applicable changes that we (@aspnet) needed to enable running xUnit.net tests on the KRE.

To see more of what we did to enabled it, see the [aspnet/xunit](http://github.org/aspnet/xunit) and [aspnet/Testing](http://github.org/aspnet/Testing) repositories.