Made it possible to build with older ant version.
Suggested By: @jurchiks
Reviewed By: @UnAfraid, @sdw-