Fixed compilation error for MAC port.