Support linking to multiple libraries

Title says it all. Useful for multiple libraries that share common headers.