build.cmd: updated from upstream