Tested with nginx 1.0.2

Add the following param to your configure:
 --add-module=/path/to/dtree/src/folder/DTree/1.4pub/src

If you enable debug mode, librt needs to be added:
 --with-ld-opt="-lrt"
