Fix the NullStream class.

It is the std::streambuf that should be inherited from.
The NullStream class is just a convenience class.
Merge pull request #286 from atgeirr/fix-nullstream

Fix the NullStream class.