Building spire as a shared library instead of a static library.

Resolves spire static linkage problems between multiple different
dynamic libraries.