fixed curses build problem