Made code compile with .NET 2.0

I simply created stubs for the missing types so this works with Unity.