GraphiteWriter: Bugfixes.

refs #4883
refs #3986
Windows build fix.
Add missing #include.