Update build script to auto download dependencies.