Fixed build fail for .NET 3.5