Changed Cocoa.h to Foundation.h to fix compilation under iOS