Fixed compilation error under MacOS