Added lualib, fixed lua foreach loop.