libpq + libxml2 build fixes