Probably the easiest thing you can do for now is to go to the hardware store and get an adapter. It will change the 3 prong grounded plug into a 2 prong polarized plug.
After that, I'd talk to some who sells and puts together any of the thermostats and ask them to put a grounded outlet cord on it.