add libd as a submodule
Some renaming in order to make more sense.