Modify build.xml for compatibility.