Fix compilation on iOS

Previous commits had used `sqlite3_close_v2` and `sqlite3_errstr`, which are both unavailable on iOS.

Updated the module.map to expose different modules for each platform for now.

Closes #23