fixes for spatialite libs