Merged some commits from 2.4.x branch to solve license related issues.

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/branches/2.4.0-rc1@1577936 13f79535-47bb-0310-9956-ffa450edef68