Fix pgsql on buildroot and probably a few other things

(Including libpq headers was somewhat incompatible with
buildroot's path)