linker: Fix staticlib naming for UEFI And one minor refactoring in the second commit.
-Wunused_crate_dependencies
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.