Move compile.cxx into a JavaCompiler class.