Update extconf.rb to solve compile error in Ubuntu