Improved threading of postgres-config.