Compile as shared library with soname.
Merge pull request #4 from binki/master

Compile as shared library with soname.