Adding StringOutputStream to cpp lib