support -d for generate dynamic library.
Merge pull request #4 from pbesedm/hotfix/dynamic_library

support -d for generate dynamic library.