[Server][test] Use LDFLAGS instead of LIBADD to fix a problem that doesn't make the library dependency on Ubuntu 12.10.