spatialite-gis: fix compilation with wxWidgets 3

See also https://github.com/Homebrew/homebrew/commit/b31227d6ef602142ea399b04211d306eaaea674c

Closes #298.
Closes #456.