Improved geos library handling based on feedback by tdsmith.