Connor McLennan opened the scoring for Aberdeen, before Bruce Anderson added a goal late in the second half against Livingston on Boxing Day.