Fix .NET 3.5 builds
Merge pull request #229 from kroimon/fix_net35

Fix .NET 3.5 builds