lua: Make sure to link against ncurses