Updating the build script to build all the dependent libraries.