Changed the project settings to target .NET 3.5.