Fixes compile error on .NET 3.5