pass along CFLAGS/LINK_FLAGS to libuv

Closes #6142
pass optimization flag to the linker
auto merge of #6176 : thestinger/rust/libuv_optimize, r=brson

Closes #6142