added stream_pack_end (internal compiler error under vc++)