Disable gaudi inheritance checking when compiling gaudi itself.
Fix a false positive in the thread checker.