Add target to compile an static version of dtm.