Modify the build file to work with a current ant version
Backport HIVE-3790 to the 0.11 branch