Changed framework version to 4.0

This makes it possible to build with Visual Studio 2010.