Support for .NET 3.5

Code can now also be compiled targeting .NET 3.5