[ELF] Undefined symbols should be allowed when building dynamic libraries

When dynamic libraries are built, undefined symbols should always be allowed and
the linker should not exit with an error.