Use package name instead of lib name for metadata dependency
Created by: ascjones
Fixes #106 (closed), and any other case where the [lib] name
field does not match exactly with the contract package name.
This PR fixes this by using the package name when generating the dependency from the metadata package.