Fix SpatiaLite 3.0 support