Use linker optimizations on Linux
auto merge of #10620 : cmr/rust/linker_opts, r=thestinger