Fix ncurses related build errors in psmisc