Fixed compilation error on darwin