[C++] fix -nostream