make code compilable on Xcode 6 beta 7