Make major compaction generate a collection of CompactionTasks and fix issue with unmarking compacting