Change .NET version to 3.5

And remove unneeded dependencies.