Fixed compilation error under Mac OS X