Add build script for automation and CI builds.