Fix specs to be compatible with newer versions of RubyGems