Fix support for Ruby 1.9, don't use Module#prepend