Fix shared libraries

This enables ``libstp`` as a shared library and allows both static and shared libraries to be built at the same time. This feature is also exposed to clients building against ``libstp`` by importing our CMake targets. Travis has also been taught to build both libraries