Fixed compilation issues on Linux