What you need to know before buying a historic home