build: better error reporting for failures in build_binaries.sh

this will make it easier to track down build failures