Add option to CMakeLists to build shared library.
Test both static and shared library builds
Add export control for symbols.
Merge pull request #1 from d-meiser/shared_lib

More fine grained control over exported symbols.