Refactor extconf.rb