lib/tdr: fix the build with --enable-automatic-dependencies