Update some tools so that they work with DGtal (after PR #744)

NB: I merged with the previous PR so that everything can be built.