How a new loan program will help preserve historic homes