Only add LUA_CFLAGS and LUA_LIBS if we have lua
Merge pull request #1804 from rubenk/conditionalize-lua

Only add LUA_CFLAGS and LUA_LIBS if we have lua