Fixed Compiling for .NET 4.0