small cleanup
Use LDLIBS for libraries instead of LDFLAGS