Fixed compilation error on some systems