Beholder, hello.
You must install libpq - dynamic client library for postgresql. And link it to project.
> All steps for building doing like described here https://github.com/postgres/pgagent
-- Best regards, Dmitry Voronin