Fix prerm.mm for iOS 8. Based on @zaxdo's patch.
Merge pull request #6 from Cykey/master

Fix prerm.mm for iOS 8. Based on @zaxdo's patch.