Upgrade project.pbxproj to latest Xcode.

This changes a bunch of warnings.
Build FMDB for iOS, not OS X.
Implement longLongForQuery.

Couchbase Lite is using this.