Add partial infrastructure for libs/ldflags segregation