Update build script to use global output directory for all binaries and libraries.