Modified CMake build for DLL support.  Now there are several macros that help with the exporting.  To be tested.