Stop buildlibs.sh at first error.

This should make it approximately seven hundred times less annoying to debug
issues with the base libraries.