[releng] restore build.ant; fix erlang compilation