Revert "Remove support for legacy HWC version encoding"

This reverts commit 7296051995fbaea919480a6cc2dabb729dabc95b.