fix java 1.5 compatibility issue (use Stack instead of Dequeue)

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1557566 13f79535-47bb-0310-9956-ffa450edef68