Changed project to run with vs2010

Involved redirecting the solution and project files to .Net 4.0 and
vs2010.
Some assembly references where also changed.