Add support for building against iOS 8 SDK. Use libc++ instead of libstdc++.

This PR modifies the build scripts to support building against the iOS 8 SDK and converts mailcore to use libc++ instead of libstdc++.