Ticket #3114: fix broken build with NCurses.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3114_ncurses_build'

* 3114_ncurses_build:
  Ticket #3114: fix broken build with NCurses.