Make CFG_LIBDIR configurable and add CFG_LIBDIR_RELATIVE. Fixes #5223

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