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

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>