Earthquake resistance and strenghtening of historic agricultural buildings