The problem is similar, because it is there because C::B adds search-dirs, which seem to be wrong (in some versions?).
Normally (or in most cases?) a compiler should know where it's includes and libs are, as long as they are in the default-folders relative to the executable dir.