postgresql: fix shared lib install path

Also adds a patch that makes the `shlib= haslibarule=no` unnecessary.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>