Fix so compiles in .NET 4