Fix cross compilation problems with openwrt

Previously, this would fail with

cc1: note: someone does not honour COPTS correctly, passed 0 times
lsyslog.c:6:17: fatal error: lua.h: No such file or directory