Use correct format for c strings
Remove unnecessary argument cast
Remove use of deprecated spatialite functions

Use *_ex threadsafe functions instead.
Merge pull request #19 from jagregory/remove-deprecated-functions

Replaces deprecated spatialite_init in favour of spatialite_init_ex