Xcode6-beta5 compile fix #19

details in issue #19