UPD: Changed build order for ant compatibility