Fixed compilation on Xcode