[build] Also apply linker garbage collection to C code --copt flags are used for both for C and C++ code.