change back to .NET Framework 4.0

change back to .NET Framework 4.0
some minor change