Fixed compilation issue on mac.