Link extra-libs consistently with libc and ld.so.