Making hydra build ddd.

(cherry picked from commit 4ba671ff113844267dbad307f8a5cbf8ac1d0f52)