liblights: add legacy define
Merge branch 'cm-10.1' into cfx