Fixed bugs related to .NET Framework version. Version 3.5 or higher is now
assumed.