Added PostgreSQL and ImageMagick configuration, and pkg-config installation.