[hwc] Add support for legacy device version encoding
[backend] Fix legacy encoding (add header revision)