add check for postgresql header availability to configure