Make FoundDeclarations test produce working C++ commandlines for headers
Added support for overrides