Fixed compile error on Xcode.