fixed #11 (For iOS 8 the DEVICE_IS_IPHONE_... macros are not valid)