Fixed compilation issues in semanalyze, but had to comment out a lot of stuff