Update build settings.
Bring fmdb and mailcore2 as submodules.