Added DLL export macros to functions.

Windows fails to use them in other files otherwise.

Refs #7557
Merge branch 'feature/7557_muon_rm_tmp_file' into develop