Add LX_CWM_* values. Also fix up internal use of hex literals instead of #defines in three source files (invisible to anyone not reading the source).