c/shared-libs: Fix use of undef with unsafe symlinks

Signed-off-by: Niels Thykier <niels@thykier.net>