Fixed some bugs extconf.rb and gemspec file