Moved libraries from _LDFLAGS to _LDADD

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>