adjust for xcode 6.1

here is a PR to make your code Xcode 6.1 ready