[Issue 7283] Usage of private headers make building out-of-tree extensions painful