configure: Update to use AX_WITH_CURSES