fix linking to libc++ with libtool builds (only gdal)