Add shared library support for dmd
Merge pull request #2 from Yoplitein/master

Fixed shared library support for dmd