Minor fix to check for libcurses