Thermostabilization of proteins