liblights: add legacy define