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