Fixed compilation issue with latest versions of gcc