further fixes to setup.rb for Ruby 1.9