Fix build on systems with new-ish curses (e.g. Precise Pangolin).