restore /var/lib/eqbeats as default EQBEATS_DIR

it's probably not worth risking to break anything
pkg-config: mention libpq as a dep
don't let AC_CHECK_LIB override $LIBS

it creates unnecessary dependencies
https://blog.flameeyes.eu/2008/04/i-consider-ac_check_lib-harmful