Added gcc/ld linker noUndefined flag.

This helps catch missing symbols when building shared libraries.