Hacks and tweaks for iOS 8 compatibility