Improve plugin build in extconf.rb