Fix build failures in Ant.