This works: sudo ln -s /tmp/tcloop/ncursesw-dev/usr/local/include/ncursesw/* /usr/include
Make the following edits to the configure script:
4973 LIBS="-lncursesw $LIBS"
5008 LIBS="-lncursesw $LIBS"
5018 LIBS="-lformw $LIBS"
5053 LIBS="-lformw $LIBS"
Then: CFLAGS="-I/usr/local/include/ncursesw" CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var
find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
make
sudo make install