Fix autotools: version to libncurses, remove check alloca, change autogen