lua: build without -lreadline and -lncurses