Add autodetection of the pdcurses packages. (dm)