fixes for ant build.