Update to new platform build API.
Update to new platform build API.