Fix a bug where the `lgtdoc` tool would print wrong information about protocol and category compilation flags