fixed a bug regarding TD_ifdef (erroneously removed tangling values)
(cf. commit 0569cc79c8d0b23dafe6ce8d8fd59313ad63ffe0 on master branch)