Start to prepare cross-compiler for libraries.

Previously, we always created a Java class file with the same name.
This generates unique names, but provides a way to get control over it
when compiling so you can get something that can be started directly
by invoking the JVM with that class name also.