fix externals handling: non-library elements need nothing at all, so runtime linking works