Ruby 1.8 support

I have added some missing methods and change some requires so the gem works in ruby 1.8.
All tests are green, tested with ruby 1.8 and ruby 1.9.