Fixed compilation with the newest cmake