Fix compatibility with Xcode 6 beta 1

Fixes #39
Merge pull request #40 from nskboy/master

Fix compatibility with Xcode 6 beta 1