Fixes require for Ruby 1.9

Changes all the `require` to work with Ruby 1.9 and 1.8.7