Xcode 6 GM seed compatebility

made the code run in Xcode 6 GM seen