update dependencies, restore build.sh