Fixed compilation on Mac