Since terminfo is guarded by include guard, need to define HAVE_CURSES_H