Fixed compilation errors happened in Ubuntu