Update build script for stable TE API