Ruby 1.9 compatibility

Change wrapper to let gem build under Ruby 1.9 (not compatible with Ruby 1.8, perhaps this should be in a branch or tag?)