Modified patch to be APPLE-specific.
Fixed typo.