Xcode6-beta5 compile fix

details in issue #19