use LDLIBS

To ensure that the linked libraries get placed *after* the file(s) that
use them.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>