Use gdal-config program to get gdal flags.