libspatialite: add head and geopackage options

Closes #25606.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>