[DDMD] Convert idgen to D

Host D compilers are now available on most platforms, let's see how this goes...

Previous pull: #2783