Added DLL export macros to functions.

Windows fails to use them in other files otherwise.

Refs #7557