Ruby 2.0 compatability

Works with Ruby 1.8→2.0 from now on