Fix xcode6 compatibility
Merge pull request #4 from wiruzx/xcode-6

Fix xcode6 compatibility