Updated for compatibility with new TypeInfo API

Updated for compatibility with new TypeInfo Reflection API, used in new
.NET environments like Windows Phone 8.1 and Apps for Windows Store and
their respective PCL profiles.