Changes to support Mono:

- Add support for building against .NET 3.5.
- Add support for building against .NET 4.0.