Returns a pointer because in GCC < 5 ofstream itself is not moveable due to a bug.
Definition at line 113 of file capture.cpp.