fix static linking of gdal/ogr plugins on linux - refs mapnik/mapnik-packaging#123
fix postgis plugin linking when statically linking on linux - refs mapnik/mapnik-packaging#123