Update extconf.rb to support Ruby 2.0