Fix ReflectionUtils to work with .NET Core