Makefile.am: add -ldl to unittest_pglog

b70868e007ffa56e0eabf22b4ca836327c5f82d4 broke non-package builds on
ubuntu and debian. This fixes the problem, and is required for anything
compiling class_api.cc.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>