Fix header-lib's package.json and improve diagnostic output.