linux bug correction on PartOfPacket::setByteStream() related to redmine issue #983