fix stream_ex for GCC (sorta)