Fixed compilation of demos