Support linking to multiple libraries

Libraries can be specified in -l <name> or -l<name> format.
Useful for multiple libraries that share common headers.