Fixed build error on Windows Phone 8.

Windows Phone 8.0 does not know type.GetTypeInfo() but can use type.IsSubclassOf() like the standard .NET Framework or Mono.