Adds compilation line for shared libraries using dmd.