Clean up export macro handling
This uses the CMake support to define the export macros to control exported symbols. This is purely a clean up change and is not intended to result in any functional change.
This uses the CMake support to define the export macros to control exported symbols. This is purely a clean up change and is not intended to result in any functional change.