Update for 1.9

This branch aims to update the gem to function properly in the Ruby 1.9.* environment.