Add build script for gaia