Add basic dependency checking to build.sh.