fix geos linking to libc++
Variety of build fixes triggered by libtool linking issues with libc++