use LDADD instead of LDFLAGS to fix build failure with ld --as-needed
sbd currently fails to build with the ld --as-needed linker option. All linked libraries need to be placed after the objects that require them. LDFLAGS is only meant for linker options - LDADD should be used to specify libraries to link against.