Added libpq.so workaround for 64-bit
Fix permissions on installed libraries