Use LDLIBS instead of LDFLAGS