Harden the build system. Fix configuration error processing.