waf: move last_linkflags appending to the customizations tool