Fix .NET 3.5 build