Fix more problems with compiling java.