Explicitly link with libncurses.