RubyGems 2.0+ compatibility (and various updates)