rc01: Enhanced build script for Java 6.