Make CFG_LIBDIR configurable. Fixes #5223

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