build: do not append $(FFLIBS-) to $(FFLIBS) if $(NAME) is not defined