Add an option to control shared vs static library builds.
Merge pull request #41 from d-meiser/static-lib

Add an option to control shared vs static library builds.