Updated library section

- `[[lib]]` is deprecated in favor of `[lib]`

- `crate-types` -> `crate-type`

- added `staticlib`