Fixed compilation bugs.