Add rust-crate-type option to pass to rustc.

Some analyses like dead-code elimination behave differently if the
`--crate-type' option passed to rustc is "bin" or "lib". Other values
might have other effects. This change allows setting that option value
manually.