fixes for rustc - crate-type vs --lib