fix shared gdal handling on osx(again)