Fix compiler error on Xcode