Fixed compilation errors on linux