Fixed compilation on mac.