Update deployment targets

Add OSX deployment target as 10.8
Update iOS deployment target to 5.0
Add CoreData framework
Merge pull request #8007 from erkanyildiz/patch-3

Update deployment targets