Big commit:
add LINK_LIBS flags which adds libs to the link line, generally and per-variant.
make general COMPILE_FLAGS and LINK_FLAGS work (that apply to all variants)