Add shared library generation.
add versioned soname support
Merge pull request #27 from robxu9/master

Add shared library support.