Exit if there is an error building one of the libraries