fixed configure on systems without curses support. thanks @MilhouseVH