[server][test] Use more suitable form to specify the library as LDFLAGS.