sort imports
add conditional compilation for iOS 8 support