Fixed a problem that compile error occurs in cmake.

Fixed a problem that compile error occurs in cmake.
Merge pull request #1020 from makotok/fix_stream_mod

Fixed a problem that compile error occurs in cmake.