fixed compilation of pgsql driver on latest Amazon AMI