Replaced deprecated functions in example/stream.cc