patch wasn't removed, so duplicated some Makefile lines).
- Set SONAME correctly for the libraries. A symlink (libpq.so -> libpq.so.N.M)
is present during build. Internal programs linking with "-lpq" on arches using
LLD get "NEEDED libpq.so" from the symlink instead of the correct "libpq.so.N.M".
Override this by setting -soname (similar to what upstream are doing, but the
library minor was missing in their version).