Update gemspec to rubygems 2 and add conditional deps