fix the problems and warnings in ./update-ant-build.sh