Modified external #defines to be FOUNDATION_EXTERN