Updated extconf.rb for Gentoo checks