use linkflags instead of cxxflags