dx3.so needs the same treatment as base.so: Just add dllglue.c code to it. Other stuff inside dx3 needed to be done I don't know if it works because I didn't work on it.
I tried to compile with dlfcntl.h include but so far only works for main executable (as other versions compilers do) but it fails with "main" needed for the ".so". So the dll library I left there is needed.
And no, timedemo fails here too.
I didn't use the cmake way to compile BTW: Barebones single makefile for me.