Fixed compilation erros.