Allow use as gem on Rails 2