Refs #6616. Attempt to fix broken builds.

- Missing DLLExport for windows
- Calling templated constructor