add LINK_CFLAGS and LINK_CXXFLAGS support