Ant reproducible fixes

two commits to improve the reproducible build using `ant`.