add ability to compile this as a shared library

call make libtsctl.so