chore(build): check if the Lua installed in the system supports lua_newstate

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
chore(build): check if the Lua installed in the system supports lua_newstate