build: only set LuaJIT linker flags when LuaJIT is enabled