Reworked odr_set_stream a bit, so that write handler now takes a