Xcode6-beta5 compile fix

details in issue #19
Merge pull request #21 from max-potapov/patch-1

Xcode6-beta5 compile fix #19