try to automatically detect GEOS lib location (instead of forcing user
to set GEOS_DIR env var). On Leopard, env vars don't get passed by sudo.
Authored by: jswhit 2007-12-08
Parent: [r4671]
Child: [r4673]