Fix issue with java depends for Gentoo in autolibs

* Gentoo uses virtual/jre and virtual/jdk to fulfill JDK/JRE requirements
* These virtuals map to Sun, Oracle, and IcedTea (OpenJDK) implementations
* Add ant-core to list of depends for jruby head