Fixed compilation errors in random_forest