[cppmyth] fix virtual members where required