Foundation: iOS build fixes