Update dependencies and simplify build script