shared library linkage in general. On DragonFly and NetBSD build with -Wl,-z,defs to find possible regressions.