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

This is totally the naivest method possible for allowing multiple `[[lib]]`s (change `&libs[0]` to a loop over `libs`) and so is likely incorrect. Feel free to reject.