What century was the castle that required repairs to the seat by John MacLeod of MacLeod first built?