resolve #26 causing lthread not to compile on osx
Add shared library generation.
add versioned soname support
Merge pull request #27 from robxu9/master

Add shared library support.
revert pull req #27 and close #24
declare lthread_exit in lthread.h. closing #22
resolve #30 - close the newly accepted fd not the fd passed to us