Fixed compilation errors on Linux