Make CFG_LIBDIR configurable. Fixes #5222
auto merge of #11045 : jhasse/rust/patch-libdir, r=brson

See https://github.com/mozilla/rust/issues/5223#issuecomment-30455086