Port plugin building to AMBuild.