Import logtrigger from xwrt
Fix logtrigger build