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