Add configure options to build static or shared libraries

Distributors need to build a single stk shared library and other projects use that. This patch adds two configure options: one to disable static linking and one to enable the shared library.

The default is to keep the current behavior of building the static library