Switch to .NET 4.0 (#328)

The only problem is upgrading to a newer version of Crystal Reports
(version 13), otherwise it is just a matter of changing the project
settings.