Add missing dll macros for unit classes.

Refs #9252