Don't use obsolete classes

Now that we target .NET 2.0+, we can finally do it.