build: add static targets to all libraries