Fix ifdefs not to break iOS.