Just pushed the changes to compile/link internal libs to the core for the old-Makefiles build system. I did individual commits just in case it will be needed to revert when some modules get changed/archived.
@xkaraman: do you want to update CMake files for the same purpose: compile/link code from src/lib/{srdb1,srdb2,ims,trie} to the core and remove building/linking of internal libs by modules? I can look into it if you have any constraints.