The error: "Z" changed to "Depth" breaks consistency in compositing and in Render layers.
Resolving the problem:
Assigning different value ("Z") to the constant 'RE_PASSNAME_Z' defined with “Depth” in the header file 'DNA_ scene_types.h' in project 'bf_dna'.