Refs #8570. Fix the Windows building problem.

Apparently Windows compiler doesn't like allocating dynamic size
arrays on the stack.