Fix ncurses

See https://src.omniti.com/omnios-private/ticket.php/53