Fix dependencies for Rails 3.0