Fix detection of iOS for disabling dynamic API.