Fix "make dist"

"make dist" failed due to missing libraries.
Usually such a rule isn't needed because the build order is determined by the server/Makefile.am.
Could you tell me how to reproduce it?

FYI:
@kou said that "$(top_builddir)" may be the cause of this issue.
Could you try build with relative paths?