Improve backwards and forward compatibility for renderd protocol v3/v2