[1.7.x] Confirmed Spatialite 4 support

Backport of e62dea9ad5 from master