Update the build script to the latest AMBuild API.