ccmake: Suppress curses macros on Solaris that conflict with C++ std APIs
Also revert previous workarounds from
* commit 3b7be02480 (ccmake: Fix compilation with ncurses on Solaris,
2018-03-20, v3.12.0-rc1~335^2), and
* commit 572e5146f8 (define hacks and such for the dec compiler,
2001-11-20, v2.4.0~6229)