build: distribute the libs target over the library-specific sections.