main: Fixed compilation errors due to variables removed in last commmit.