Minor changes to the build system

 - Added the --debug-lib-error option.