Fix compatibility with Xcode 6 beta 1

Fixes #39