You are using the Zdefocus node incorrectly. The 'filter' input is the shape that the defocus areas convolve to, not the input of the depth pass. You need to channel in the ZDepth pass into the 'depth' channel. It is also a good idea to dilate the aliased zdepth pass by 1 to 2 pixels to avoid edge artefacts.