configure: Fix detection of ncurses library on Archlinux.