external/libncurses: unified external_libncurses patch from Jellaxy original branch