Use autotools to build sds as a shared library
Move tests to another C file
Merge remote-tracking branch 'origin/shared-library'