Makefile: handle dangling link