Use cmake helpers to declare dll export macros.