autoconf/automake support on Solaris

Also fixes JRuby installation on Solaris 10