fix for cmake when curses is not found