Updating package names in SmartOS, and trying to check for packages
already installed without before requiring sudo.

See issue #1774
Update smartos configure environment to specify 'debugflags'. #1774
Forcing configure to run in bash for non-portable configure code (bug in ruby-2.0.0, fixed in https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/39741). Affects Solaris and SmartOS (and probably BSDs too). #1774