Use the '-z defs' linker option if supported to better catch undefined