bugfixes in geos and spatialite

GEOS: added a macro to tell the compile to use libstdc++ 
spatialite: expose public header files