Pass "-z defs" to the linker via "-Wl,-z,defs" rather than with gcc's -z