Move optional libraries to link into macros controlled by target-ver-syms