I downloaded state threads from sourceforge and had to make the following change to get it to build. I didn't test further than just compiling though. Not sure what you would need to change to get your `autotools' makefiles to work.
--- ./st-1.9/Makefile Thu Oct 1 17:55:03 2009 +++ Makefile Sun Dec 2 21:35:22 2018 @@ -200,6 +200,7 @@ SFLAGS = -fPIC LDFLAGS = -shared -soname=$(SONAME) -lc OTHER_FLAGS = -Wall +LD = gcc -rdynamic -Wl,-rpath ifeq ($(shell test -f /usr/include/sys/event.h && echo yes), yes) DEFINES += -DMD_HAVE_KQUEUE endif