Fixed makefile implicit rule linking

The implicit linking rule is $(CC) $(LDFLAGS) n.o $(LOADLIBES) $(LDLIBS).
The official standard is that libraries need to be specified after n.o,
but it seems like most people's gcc accepts them anywhere. Not mine though.
My gcc is super pedantic.