Prefer common over weak linkage when linking.

This matches the behavior of ELF linkers.