Fixed compilation issues in Linux