I think the part related to the internal libraries is completed.
Regarding the `-pthread`, it is always required by the core because of multi-threaded UDP reading, before it was needed when overwritting pthread locks for tls with libssl1.1+. The modules that need -ptheard should have it in their (old-)Makefile. for example:
``` src/modules/cdp/Makefile 28: LIBS += -lpthread ```