mtd: add build hack to reintroduce shared mtd for older releases