XE-1288: Debian packages fail to configure for postgres
(cherry picked from commit adcf825d0733a475760257dd48dc1933f9811ccc)