Fixed compilation error for MAC port.
Merge pull request #2133 from dumganhar/master

Fixed compilation error for MAC port.