Rakefile fixes.

* Mixin `Rake::DSL` into our helper module, thus getting rid of the annoying warning from rake.
* Update the voodoo we use to recover from a LoadError, since the error message appears to have changed from 1.8 to 1.9.