Fix in lib which makes mistserver compilable and usable for mac
Fixed restreaming bug.