some small fixes in limitstreams (make count optional in constructor; pass streambuf as pointer instead of a reference)