Fixed compilation issues in Linux(Ubuntu).