Fix compiler warnings and new raw stream options