Add support for multiple [[lib]]s in a package.

This is totally the naivest method possible for allowing multiple `[[lib]]`s and so is likely incorrect. Feel free to reject.