Add missing include "algorithm.h"
Rename field_set::stream by field_set::to_string

Same thing for field_set::stream_raw ito field_set::to_string_raw