Add Lua to cmake.
Fix compile errors on Linux