fixed compilation for ios8, xcode 6