Segfault in LIBEDIT_INTERNAL after tgetstr(), when libncurses5-dev