Making the project compatible with .NET 4.0 and Visual Studio 2010