sys-libs/ncurses-5.9.20141206

This one compiles with GCC 5.0.